import Vue from "vue"
import VueRouter from "vue-router"

Vue.use(VueRouter)

export const constantRoutes = [
    {
        path: '/login',
        name: 'login',
        component: () => import('@/views/login')
    },
    {
        path: '/inputnum',
        name: 'inputnum',
        component: () => import('@/views/inputnum')
    },
    {
        path: '/radioform',
        name: 'radioform',
        component: () => import('@/views/radioform')
    },
    {
        path: '/checkform',
        name: 'checkform',
        component: () => import('@/views/checkform')
    },
    {
        path: '/selectform',
        name: 'selectform',
        component: () => import('@/views/selectform')
    },
    {
        path: '/selectmore',
        name: 'selectmore',
        component: () => import('@/views/selectmore')
    },
    {
        path: '/timestep',
        name: 'timestep',
        component: () => import('@/views/timestep')
    },
    {
        path: '/timeany',
        name: 'timeany',
        component: () => import('@/views/timeany')
    },
    {
        path: '/timerange',
        name: 'timerange',
        component: () => import('@/views/timerange')
    },
    {
        path: '/planmange',
        name: 'planmange',
        component: () => import('@/views/banzu/planmange')
    },
    {
        path: '/meetingmanage',
        name: 'meetingmanage',
        component: () => import('@/views/banzu/meetingmanage')
    }
]


const router = new VueRouter({
    routes: constantRoutes
})


export function restRouter() {
    location.reload()
}


export default router
